//
//  LRJ_TextureMakerAndResponder+touch.h
//  LRJAansyDraw
//
//  Created by imac_LRJ on 2022/6/8.
//

#import "LRJ_TextureMakerAndResponder.h"
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
@protocol LRJ_ActiveRangePtotocol;
@protocol LRJ_TextureMakerAndResponderEventDelegate;

@interface LRJ_TextureMakerAndResponder()
{
@protected
    __weak id<LRJ_TextureMakerAndResponderEventDelegate> _eventDelegate;
    // 记录上次touch end时候的timestamp，否则调用2次touch ended
    NSTimeInterval _lastTouchEndedTimeStamp;
    
    struct {
        unsigned int placeAttachment: 1;
    } _delegateHas;
    
    struct {
        unsigned int contextView: 1;
        unsigned int activeRanges: 1;
        unsigned int didPressActiveRange: 1;
        unsigned int didHighlightedActiveRange: 1;
        unsigned int shouldInteractWithActiveRange: 1;
    } _eventDelegateHas;
    
    CGPoint _touchesBeginPoint;
}

// 正在响应点击的激活区，每一个可点击区域都被定义成了激活区
@property (nonatomic, strong, nullable) id<LRJ_ActiveRangePtotocol> pressingActiveRange;

// 已保存的点击激活区
@property (nonatomic, strong, nullable) id<LRJ_ActiveRangePtotocol> savedPressingActiveRange;
@end

